﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Minotaur.App.Core
{
    /// <summary>
    /// 全局配置json对应类
    /// </summary>
    public class GlobalConfigModel
    {
        public ConnectionConfig? ConnectionConfig { get; set; }

        /// <summary>
        /// 逻辑接口程序集
        /// </summary>
        public string[] ServiceAssemblys { get; set; }

        /// <summary>
        /// 数据仓储接口程序集
        /// </summary>
        public string[] RepositoryAssemblys { get; set; }
        /// <summary>
        /// 加解密密钥
        /// </summary>
        public CryptoModel? Crypto { get; set; }
        /// <summary>
        /// Redis 操作
        /// </summary>
        public RedisModel? RedisConfig { get; set; }
    }
    public class CryptoModel
    {
        public AESModel? AES { get; set; }
    }
    public class AESModel
    {
        public string? Key { get; set; }
        public string? IdentityUrl { get; set; }
    }
    public class RedisModel
    {
        public int ExpireMinutes { get; set; }
        public string? Address { get; set; }
        public int MaxReadPoll { get; set; }
        public int MaxWritePoll { get; set; }
    }
}
